package com.zac.coroutine.algorithm.selectionsort

/**
 * author zac
 * date 2024/10/12
 *
 */


fun Array<out Any>.print() {
    this.forEachIndexed { index, any ->
        print(
            if (index == this.size - 1) {
                "$any"
            } else {
                "$any,"
            }
        )
    }
}

fun Array<out Any>.println() {
    this.forEachIndexed { index, any ->
        println(
            if (index == this.size - 1) {
                "$any"
            } else {
                "$any,"
            }
        )
    }
}